<p-dialog header="位置选择" [(visible)]="display" modal="modal" width="500" [responsive]="true" (onHide)="closeLocationMask(false)" class="tree">
  <p-tree [value]="filesTree4"
          selectionMode="single"
          [(selection)]="selectedFile"
          *ngIf="treeState === 'add'"
  ></p-tree>
  <p-tree [value]="filesTree4"
          selectionMode="single"
          [(selection)]="selectedFile"
          *ngIf="treeState === 'update'"
  ></p-tree>
  <!--{{selectedFile? selectedFile.label :'none'}}-->
  <p-footer>
    <button type="button" pButton icon="fa-check" (click)="formSubmit(false)" label="确定"></button>
    <button type="button" pButton icon="fa-close" (click)="closeLocationMask(false)" label="取消"></button>
  </p-footer>
</p-dialog>
